package com.unionbigdata.teaching.controller;

import com.unionbigdata.teaching.entity.File_info;
import com.unionbigdata.teaching.sevice.impl.FileServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.List;

@RestController
public class FileController {
    @Autowired
    FileServiceImpl fileService;
    @RequestMapping("getFileInfo")//文件数据获取
    public List<File_info> getFileInfo(String user_id) throws IOException {

        List<File_info> f = fileService.getFileInfo();
        System.out.println(f);
        return f;
    }
}
